package com.ereport.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "admin_expnse_to_exe")
public class AdminExpensesToExec implements Serializable{
	@Id
	@GeneratedValue(generator="increment")
	@GenericGenerator(name="increment", strategy = "increment")
	private int id;
	@ManyToOne
	@JoinColumn(name="admin_id")
	private Executives adminId;
	@Column(name="exe_id")
	private int exeId;
	private float travel;
	private float hotel;
	@Column(name="os_exp")
	private float osExpnse;
	@Column(name="indv_allowns")
	private float indivAllowns;
	private String expnsdate;
	
	public AdminExpensesToExec(){
		
	}


	public AdminExpensesToExec(int expnseid, Executives ex, int exeid2,
			float trvl, float htl, float osex, float indal, String exdate) {
		this.id=expnseid;
		this.adminId=ex;
		this.exeId=exeid2;
		this.travel=trvl;
		this.hotel=htl;
		this.osExpnse=osex;
		this.indivAllowns=indal;
		this.expnsdate=exdate;
	}


	public AdminExpensesToExec(Executives ex, int exeid2, float trvl,
			float htl, float osex, float indal, String exdate) {
		this.adminId=ex;
		this.exeId=exeid2;
		this.travel=trvl;
		this.hotel=htl;
		this.osExpnse=osex;
		this.indivAllowns=indal;
		this.expnsdate=exdate;
	}


	public int getId() {
		return id;
	}


	public void setId(int id) {
		this.id = id;
	}


	public Executives getAdminId() {
		return adminId;
	}


	public void setAdminId(Executives adminId) {
		this.adminId = adminId;
	}


	public int getExeId() {
		return exeId;
	}


	public void setExeId(int exeId) {
		this.exeId = exeId;
	}


	public float getTravel() {
		return travel;
	}


	public void setTravel(float travel) {
		this.travel = travel;
	}


	public float getHotel() {
		return hotel;
	}


	public void setHotel(float hotel) {
		this.hotel = hotel;
	}


	public float getOsExpnse() {
		return osExpnse;
	}


	public void setOsExpnse(float osExpnse) {
		this.osExpnse = osExpnse;
	}


	public float getIndivAllowns() {
		return indivAllowns;
	}


	public void setIndivAllowns(float indivAllowns) {
		this.indivAllowns = indivAllowns;
	}


	public String getExpnsdate() {
		return expnsdate;
	}


	public void setExpnsdate(String expnsdate) {
		this.expnsdate = expnsdate;
	}


	
	
}
